package com.kylin.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kylin.common.utils.PageUtils;
import com.kylin.gulimall.product.entity.SpuInfoEntity;
import com.kylin.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author kylin
 * @email zhang171346168@qq.com
 * @date 2020-12-15 09:43:26
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存所有数据 [33kb左右]
     *
     * @param vo
     */
    void saveSpuInfo(SpuSaveVo vo);

    void saveBatchSpuInfo(SpuInfoEntity spuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品上架
     *
     * @param spuId
     */
    void up(Long spuId);
}

